package cn.edu.nuc.crm.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import cn.edu.nuc.crm.entity.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleid);
    /**
     * 添加角色
     */
    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    /**
	 * 列出角色列表
	 * @return
	 */
	List<Role> rolelist();

	int count();

	List<Role> findByid(@Param("start")int start,@Param("offset")int offset);
	List<Role> select();
}